package entidades;

import java.util.ArrayList;

public class ContactoAndroid {
	private String nombre;
	private String id;
	private Object uri;
	private ArrayList<String> telefonos;
	private ArrayList<EmailsContacto> emails;
	
	public ContactoAndroid() {
		telefonos = new ArrayList<String>(0);
		emails = new ArrayList<EmailsContacto>(0);
		
		
		
	}
	
	
	public void setUri(Object o){
		this.uri =o;
	}
	public Object getUri(){
		return this.uri;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}


	
	
	public String getNombre() {
		return nombre;
	}
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	public ArrayList<String> getTelefonos() {
		return telefonos;
	}
	public void setTelefonos(ArrayList<String> telefonos) {
		this.telefonos = telefonos;
	}
	public ArrayList<EmailsContacto> getEmails() {
		return emails;
	}
	public void setEmails(ArrayList<EmailsContacto> emails) {
		this.emails = emails;
	}
	
	public void agregarEmail(String email, String tipo){
	   EmailsContacto mail = new EmailsContacto();
	   mail.setValue(email);
	   mail.setType(tipo);
	   emails.add(mail);
	}
	public void agregarTelefono(String number){
		telefonos.add(number);
	}
	
   public String toString(){
	  return nombre;
    }


}
